<?php
class Loader
{
	public static function load($file)
	{
		if(!self::isLoaded($file))
		{
			include($file);
		}
	}
	/*
	@param: 
	$file string
	@return:boolean
	*/
	public static function isLoaded($file)
	{
		$return=false;
		$files=get_included_files();
		$file=basename($file);
		foreach ($files as $value)
		{
			if(basename($value)==$file)
			{
				$return=true;
				break;
			}
		}
		return $return;
	}
}